package com.breeze.controller;

import com.breeze.domain.User;
import com.breeze.filter.UserFilter;
import lombok.AllArgsConstructor;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RefreshScope
@AllArgsConstructor
public class OrderController {

    private UserFilter userFilter;

    @GetMapping("/getById/{id}")
    public User getById(@PathVariable Long id){
        return userFilter.getById(id);
    }
}
